#include "config.h"

Config::Config()
{
    QSettings* config=new QSettings("Config.ini",QSettings::IniFormat);
    server=config->value("Server/server").toString();
    port=config->value("Server/port").toInt();
    username=config->value("Server/username").toString();

}

void Config::setUsername(QString str)
{
    QSettings* config=new QSettings("Config.ini",QSettings::IniFormat);
    config->setValue("Server/username",str);
}
